#include <iostream>
using namespace std;

class A{
public:
	void show(){
		cout<<i<<endl;
	}
	
	int i = 10;
}; 
class B:public A{
public:
	void show(){
		cout<<i<<"qe"<<endl;
	} 
	
	
	int i = 20;
	int j = 30;
};

int main(){
	A a;
	B b;
	a = b;
	A* p1 = new B;
	A& p2 = b;
	A* p3 = &b;
	
	a.show();
	p1->show();
	p2.show();
	p3->show();
	
	return 0;
}
